package cn.tansanqinger.basics;

public class Test2 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class<?> clsA = java.util.Date.class;
        Class<?> clsB = Class.forName("java.util.Date");
        Class<?> clsC = new java.util.Date().getClass();
        System.out.println(clsA);
        System.out.println(clsB);
        System.out.println(clsC);
        System.out.println(clsA.getName());
        System.out.println(clsB.getName());
        System.out.println(clsC.getName());
        System.out.println(clsA.getSimpleName());
        System.out.println(clsB.getSimpleName());
        System.out.println(clsC.getSimpleName());
    }
}
